<?php
class Block_IncludeBlockadmin extends Zend_View_Helper_Abstract{
	public function includeblockadmin($listname){
		$db = Zend_Registry::get('connectDB');
		
		foreach ($listname as $name)
		{
			$sql = "select * from block where type = '" .$name."'" ;
			$result = $db->fetchAll($sql);
			foreach ($result as $value) {
				require(BLOCK_PATH .'/'.$name. "/default.php");
			}	
		}
	}
}